package org.itboys.mobile.entity.mysql.wallet;

import java.math.BigDecimal;

/**
 * Created on 2017/10/31.
 * @author 朱坤涛
 */
public class PearlIncomRecord {
    public Long objId = 0L;// 订单id，只有生成了订单，才能有各种收益。 如果不是收益，该值为0
    public int objType = 1;// 收益类型 1:消费佣金 2:开店佣金 3-团队提成 4-提现 5-余额付款 6-商品退款
    public BigDecimal points;// 积分
    public BigDecimal amount;// 不能提现的金额（也就是累计红包）
    public BigDecimal money;// 可提现的红包金额
    public Long userId;// 收益人的id，会员、代理商等（配合obj_type字段使用。例如user_id=店铺的ID（shop_id），那么obj_type=1或者=2，不能为其他值）
    public Long fromUserId = 0L;// 收益来源，来源可以是企业或者会员。配合obj_type 和user_id
    // 字段使用。比如来源是企业的业绩奖励，那么obj_type
    // =2，user_id=店铺的ID（shop_id）
    public Long shopId = 0L;// 店铺的ID
    public int isDeleted = 1;// 逻辑删除 0：无效 1：有效
    public int isConfirm = 0; // 0-已付款 1-确认收货 2-退款

    private String totalAmount; //总收益
    private String countAmount; //总业绩
    private Integer isOk = 1; //是否可以查看详情
    private String orderNo; //d
    private String nickName; //d
    private String time; //d

    public Long getObjId() {return objId;}

    public void setObjId(Long objId) {this.objId = objId;}

    public int getObjType() {return objType;}

    public void setObjType(int objType) {this.objType = objType;}

    public BigDecimal getPoints() {return points;}

    public void setPoints(BigDecimal points) {this.points = points;}

    public BigDecimal getAmount() {return amount;}

    public void setAmount(BigDecimal amount) {this.amount = amount;}

    public BigDecimal getMoney() {return money;}

    public void setMoney(BigDecimal money) {this.money = money;}

    public String getOrderNo() {return orderNo;}

    public void setOrderNo(String orderNo) {this.orderNo = orderNo;}

    public String getNickName() {return nickName;}

    public void setNickName(String nickName) {this.nickName = nickName;}

    public String getTime() {return time;}

    public void setTime(String time) {this.time = time;}

    public Long getUserId() {return userId;}

    public void setUserId(Long userId) {this.userId = userId;}

    public Long getFromUserId() {return fromUserId;}

    public void setFromUserId(Long fromUserId) {this.fromUserId = fromUserId;}

    public Long getShopId() {return shopId;}

    public void setShopId(Long shopId) {this.shopId = shopId;}

    public int getIsDeleted() {return isDeleted;}

    public void setIsDeleted(int isDeleted) {this.isDeleted = isDeleted;}

    public int getIsConfirm() {return isConfirm;}

    public void setIsConfirm(int isConfirm) {this.isConfirm = isConfirm;}

    public String getTotalAmount() {return totalAmount;}

    public void setTotalAmount(String totalAmount) {this.totalAmount = totalAmount;}

    public String getCountAmount() {return countAmount;}

    public void setCountAmount(String countAmount) {this.countAmount = countAmount;}

    public Integer getIsOk() {return isOk;}

    public void setIsOk(Integer isOk) {this.isOk = isOk;}
}
